COM AT^SCCM - Call center monitor
COM V1.0 	29.11.04	T. Kleinmann

from attglobals import *

AT^SCCM=?
WAIT FOR OK

AT^SCCM
strCCMVal=WAITFOR(1,'OK')

#extract Version
strVersion=ExtractParameter(strCCMVal,1,'^SCCM:')


#extract General
strGeneral=ExtractParameter(strCCMVal,2,'^SCCM:')


#extract Setup
strSetup=ExtractParameter(strCCMVal,3,'^SCCM:')


#extract Network
strNetwork=ExtractParameter(strCCMVal,4,'^SCCM:')


#extract Battery
strBattery=ExtractParameter(strCCMVal,5,'^SCCM:')


#extract Diagnosis
strDiagnosis=ExtractParameter(strCCMVal,6,'^SCCM:')


MESSAGE ('Decoding CCM Values is not automated, so please decode by means of','\n','\n','\n',\
'* CCMon: http://ezk.klf.siemens.de/Dienststellen/bildergalerie/iut_aufgaben/index.html-->Download-->Mini Monitor-->CCMonitor','\n',\
'* Master document AT command specification','\n','\n','\n',\
'Values returned by AT^SCCM:','\n','\n'\
'Version:', strVersion,'\n','\n','General:',strGeneral,'\n','\n','Setup:',strSetup,'\n','\n','Network:',strNetwork,'\n','\n',\
'Battery:',strBattery,'\n','\n','Diagnosis:',strDiagnosis,'\n','\n',\
'Please make sure that UI also returns correct values by entering *#06# ->Info->Info','\n',\
'Values in category Setup may vary because of illumination switched on when keys are pressed')

USERTEST ('Did ^SCCM return the correct values?')

AT
WAIT FOR OK